package com.bdmc.base.service;

import com.bdmc.base.domain.BaseFencePoint;
import com.bdmc.base.domain.vo.BaseFencePointVo;
import com.bdmc.base.domain.bo.BaseFencePointBo;
import com.bdmc.common.core.mybatisplus.core.IServicePlus;
import com.bdmc.common.core.page.TableDataInfo;
import com.bdmc.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 围栏内检查点Service接口
 *
 * @author bdmc
 * @date 2022-03-14
 */
public interface IBaseFencePointService extends IServicePlus<BaseFencePoint, BaseFencePointVo> {
	/**
	 * 查询单个
	 * @return
	 */
	BaseFencePointVo queryById(Long pointId);

	/**
	 * 查询列表
	 */
    TableDataInfo<BaseFencePointVo> queryPageList(BaseFencePointBo bo, PageQuery pageQuery);

	/**
	 *分页查询列表
	 */
	TableDataInfo<BaseFencePointVo> mySelectPage(BaseFencePointBo bo, PageQuery pageQuery);

	/**
	 * 查询列表
	 */
	List<BaseFencePointVo> queryList(BaseFencePointBo bo);

	/**
	 * 根据新增业务对象插入围栏内检查点
	 * @param bo 围栏内检查点新增业务对象
	 * @return
	 */
	Boolean insertByBo(BaseFencePointBo bo);

	/**
	 * 根据编辑业务对象修改围栏内检查点
	 * @param bo 围栏内检查点编辑业务对象
	 * @return
	 */
	Boolean updateByBo(BaseFencePointBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
